<script>

    var c = 1
    var c = 2

    console.log(c)
    let d = 3
    let d = 4
    // console.log(d) //报错：Uncaught SyntaxError: Identifier 'd' has already been declared
    
    //结论： let不能定义相同变量，var可以
    
</script>